/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.mto.module.karaoke.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link com.mto.module.karaoke.service.http.UserSongsServiceSoap}.
 *
 * @author    vuonglm
 * @see       com.mto.module.karaoke.service.http.UserSongsServiceSoap
 * @generated
 */
public class UserSongsSoap implements Serializable {
	public static UserSongsSoap toSoapModel(UserSongs model) {
		UserSongsSoap soapModel = new UserSongsSoap();

		soapModel.setUserSongId(model.getUserSongId());
		soapModel.setUserId(model.getUserId());
		soapModel.setCommentNumber(model.getCommentNumber());
		soapModel.setListenNumber(model.getListenNumber());
		soapModel.setMark(model.getMark());
		soapModel.setRecodingUrl(model.getRecodingUrl());
		soapModel.setDescription(model.getDescription());
		soapModel.setIsShow(model.getIsShow());
		soapModel.setAvatar(model.getAvatar());
		soapModel.setCreateDate(model.getCreateDate());
		soapModel.setSongId(model.getSongId());

		return soapModel;
	}

	public static UserSongsSoap[] toSoapModels(UserSongs[] models) {
		UserSongsSoap[] soapModels = new UserSongsSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static UserSongsSoap[][] toSoapModels(UserSongs[][] models) {
		UserSongsSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new UserSongsSoap[models.length][models[0].length];
		}
		else {
			soapModels = new UserSongsSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static UserSongsSoap[] toSoapModels(List<UserSongs> models) {
		List<UserSongsSoap> soapModels = new ArrayList<UserSongsSoap>(models.size());

		for (UserSongs model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new UserSongsSoap[soapModels.size()]);
	}

	public UserSongsSoap() {
	}

	public long getPrimaryKey() {
		return _userSongId;
	}

	public void setPrimaryKey(long pk) {
		setUserSongId(pk);
	}

	public long getUserSongId() {
		return _userSongId;
	}

	public void setUserSongId(long userSongId) {
		_userSongId = userSongId;
	}

	public long getUserId() {
		return _userId;
	}

	public void setUserId(long userId) {
		_userId = userId;
	}

	public int getCommentNumber() {
		return _commentNumber;
	}

	public void setCommentNumber(int commentNumber) {
		_commentNumber = commentNumber;
	}

	public int getListenNumber() {
		return _listenNumber;
	}

	public void setListenNumber(int listenNumber) {
		_listenNumber = listenNumber;
	}

	public int getMark() {
		return _mark;
	}

	public void setMark(int mark) {
		_mark = mark;
	}

	public String getRecodingUrl() {
		return _recodingUrl;
	}

	public void setRecodingUrl(String recodingUrl) {
		_recodingUrl = recodingUrl;
	}

	public String getDescription() {
		return _description;
	}

	public void setDescription(String description) {
		_description = description;
	}

	public boolean getIsShow() {
		return _isShow;
	}

	public boolean isIsShow() {
		return _isShow;
	}

	public void setIsShow(boolean isShow) {
		_isShow = isShow;
	}

	public String getAvatar() {
		return _avatar;
	}

	public void setAvatar(String avatar) {
		_avatar = avatar;
	}

	public Date getCreateDate() {
		return _createDate;
	}

	public void setCreateDate(Date createDate) {
		_createDate = createDate;
	}

	public long getSongId() {
		return _songId;
	}

	public void setSongId(long songId) {
		_songId = songId;
	}

	private long _userSongId;
	private long _userId;
	private int _commentNumber;
	private int _listenNumber;
	private int _mark;
	private String _recodingUrl;
	private String _description;
	private boolean _isShow;
	private String _avatar;
	private Date _createDate;
	private long _songId;
}